#ifndef __CONNECTOR_H__
#define __CONNECTOR_H__

#include <string>
#include "../Model/GameModel.h"
/*typedef enum
{
  LOCAL_CONNECTOR,
  NETWORK_CONNECTOR
} CONNECTOR_TYPE;*/

class Connector
{
protected:
  GameModel *model_;

public:
  Connector();
  Connector(GameModel &model);

  //player opens card
  virtual int openCard(int playerNum) const;

  //some of players gets totem
  virtual int getTotem(int playerNum) const;

  //starts game
  virtual int startGame(bool toShuffle) const;

  virtual int connect(const std::string &name, const time_t &connectTime, int &error);

  void setCards(const std::vector<Card>& cards);
  
  int setModel(GameModel &model);
  GameModel* getModel() const;

  virtual void disconnect() {};
};


#endif
